#!/bin/bash

#export PREFIX=/home/peercome/selinux/_install
#export DESTDIR=/home/peercome/selinux/_install
#export CC="arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9"

#make clean
#make && make install

pwd_path=$PWD

SUBDIRS=(setfiles load_policy newrole run_init secon sestatus semodule setsebool scripts po man hll)

for dir in ${SUBDIRS[*]}
do
	echo ""
	echo $dir
	echo ""
	cd $dir && ./build.sh
	cd $pwd_path
done
